﻿@model PeaceBlogData.Tables.Posts
@{
    ViewBag.Title = Model.MetaTitle;
    Layout = "~/Views/_PeaceLayout.cshtml";
}

<article class="prl-article w-box">
    @Html.Partial("BlogPartial/Posts/Post", Model)
    @Html.Partial("BlogPartial/AuthorInfo", Model.Authors)
    @Html.Partial("BlogPartial/ShareBox", Model.SpecialURL)
</article>

@Html.Partial("BlogPartial/Posts/RelatedPosts", Model.Tags)

<div class="w-box w-box-padd prl-panel prev-next-posts clearfix">

</div>

@Html.Partial("BlogPartial/Comments/Comments")

@Html.Partial("BlogPartial/Comments/SendComment")

@section Scripts{
    <script>
        $("#share-fb").click(function () {
            FB.ui({
                method: 'share',
                href: '@Request.Url.ToString()',
            }, function (response) {

                if(response==null)
                {
                    alert("Paylaşırken bir hata oluştu.");
                }
            });
        });
        @Html.FacebookSDK()
    </script>
}